#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int main()

{

	int a = 0, i = 9;

	scanf("%d", &a);

	int max = a;

	while (i--)

	{

		scanf("%d", &a);

		max> a ? max : (max = a);

	}

	printf("%d", max);

		return 0;

}